﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class copydatafile : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string[] strfile = new string[] { 
"X-10-1b-Phathoc.mp3",
"X-10-2a-Phathoc.mp3",
"X-10-2b-Phathoc.mp3",
"X-10-3a-Phathoc.mp3",
"Xuan Xa Me.mp3",
"Xuan Xa Me.mp3",
"Xuan Xa Me.mp3",
"Y Nghia niem Phat ADIDA.mp3",
"Y-12-1a-Phathoc.mp3",
"Y-12-1b-Phathoc.mp3",
"Y-12-2a-Phathoc.mp3",
"Y-12-2b-Phathoc.mp3",
"Y-12-3a-Phathoc.mp3",
"Y-12-3b-Phathoc.mp3",
"conduongtoidi_p1.pps",
"conduongtoidi_p3.pps",
"Ve ngay phat dao.mp3"
};
        Response.Write("begin");
        for (int i = 0; i < strfile.Length; i++)
        {
            try
            {
                File.Copy("D:\\WWW\\suoinguontinhthuong.vn\\httpdocs\\Data\\" + strfile[i], "D:\\WWW\\suoinguontinhthuong.vn\\subdomains\\linhson\\httpdocs\\static\\Data\\" + strfile[i], true);
                Response.Write("<br/>" + strfile[i]);
            }
            catch (Exception)
            {
                Response.Write("<br/>ERROR" + strfile[i]);
            }
           
        }
        Response.Write("end");
    }
}